package org.jeecg.modules.demo.kpi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.kpi.entity.kpistatusList;
import org.jeecg.modules.demo.kpi.service.IKpiStatusListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.jeecg.modules.demo.kpi.mapper.KpiStatusListMapper;

import java.util.List;

@Service
public class KpiStatusListServiceImpl extends ServiceImpl<KpiStatusListMapper, kpistatusList> implements IKpiStatusListService {
    @Autowired
    private KpiStatusListMapper kpiStatusListMapper;

    //根据配合部门id和状态来查询年度关键指标列表
    @Override
    public List<kpistatusList> SelectKpistatusListByOrgId(String orgId,String  status) {
        return kpiStatusListMapper.SelectKpistatusListByOrgId(orgId,status);
}
    //查询全部的年度关键指标列表
    @Override
    public List<kpistatusList> SelectKpistatusListAll() {
        return kpiStatusListMapper.SelectKpistatusListAll();
    }
    //年度关键指标列表的记录总数
    @Override
    public int KpiSum() {
        return kpiStatusListMapper.KpiSum();
    }


}